package com.chenyongjing.design.pattern.observer.general;

/**
 * @Author chen
 * @Date 2022/12/5 21:03
 */
public class Test {
    public static void main(String[] args) {
        IObserver observer = new ConcreteObserver();
        ISubject subject = new ConcreteSubject();
        subject.attach(observer);
        subject.notify("测试事件");
    }
}
